<?	session_start(); 
	if(isset($_SESSION['id']) & isset($_SESSION['pass']))
	{
	require("koneksi.php");
	$kode=$_GET["kodemk"];
	$jur=$_GET["jur"];
	$query=mysql_query("select * from penawaran where kodemk='$kode' and jurusan='$jur'");
	$row=mysql_fetch_row($query);
	
?>
<html>
<head>
	<title>Welcome to Admin Uwika</title>
	<link rel="stylesheet" type="text/css" href="style.css">
</head>

<body leftmargin=0 topmargin=0 marginheight="0" marginwidth="0" bgcolor="#E6E6E6">

<table border="0" cellpadding="0" cellspacing="0" width="758" align="center">
<tr valign="top">
	<td>&nbsp;</td>
	<td> <img src="images/Header.jpg" width="755" height="130"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="758" align="center">
<tr valign="top">
	<td width="185" background="images/fon_left03.gif">
<table border="0" cellpadding="0" cellspacing="0" background="images/fon_left01.gif" width="100%">
<tr>
	<td align="right">
<table border="0" cellpadding="0" cellspacing="0" width="165" background="images/fon_left02.gif">
<tr>
	<td background="images/left01.gif" height="26"><p class="title">FORM MASTER</p></td>
</tr>
<tr>
	<td>
<p class="b01"><img src="images/e02.gif" width="6" height="5" alt="" border="0" align="absmiddle">&nbsp;&nbsp;<a href="home.php">Beranda</a></p>
<div align="center"><img src="images/hr01.gif" width="137" height="3" alt="" border="0"></div>
<p class="b01"><img src="images/e02.gif" width="6" height="5" alt="" border="0" align="absmiddle">&nbsp;&nbsp;<a href="mahasiswa.php">Mahasiswa</a></p>
<div align="center"><img src="images/hr01.gif" width="137" height="3" alt="" border="0"></div>
<p class="b01"><img src="images/e02.gif" width="6" height="5" alt="" border="0" align="absmiddle">&nbsp;&nbsp;<a href="mata_kuliah.php">Mata Kuliah </a></p>
<div align="center"><img src="images/hr01.gif" width="137" height="3" alt="" border="0"></div>
<p class="b01"><img src="images/e02.gif" width="6" height="5" alt="" border="0" align="absmiddle">&nbsp;&nbsp;<a href="nilai.php">Nilai</a></p>
<div align="center"><img src="images/hr01.gif" width="137" height="3" alt="" border="0"></div>
<p class="b01"><img src="images/e02.gif" width="6" height="5" alt="" border="0" align="absmiddle">&nbsp;&nbsp;<a href="jadwal.php">Jadwal</a></p>
<div align="center"><img src="images/hr01.gif" width="137" height="3" alt="" border="0"></div>
<p class="b01"><img src="images/e02.gif" width="6" height="5" alt="" border="0" align="absmiddle">&nbsp;&nbsp;<a href="dosen.php">Dosen</a></p>
<div align="center"><img src="images/hr01.gif" width="137" height="3" alt="" border="0"></div>
<p class="b01"><img src="images/e02.gif" width="6" height="5" alt="" border="0" align="absmiddle">&nbsp;&nbsp;<a href="informasi.php">Informasi</a></p>
<div align="center"><img src="images/hr01.gif" width="137" height="3" alt="" border="0"></div>
<p class="b01"><img src="images/e02.gif" width="6" height="5" alt="" border="0" align="absmiddle">&nbsp;&nbsp;<a href="logout.php">Logout</a></p>
</td>
</tr>
<tr>
	<td><img src="images/left_bot02.gif" width="165" height="18" alt="" border="0"></td>
</tr>
</table>	
<br>
<table border="0" cellpadding="0" cellspacing="0" width="165" background="images/fon_left02.gif">
<tr>
	<td background="images/left02.gif" height="26"><p class="title">QUICK SEARCH</p></td>
</tr>
<tr>
	<td>
<form action="" method="post">
<p class="px5">
<div align="center"><input type="Text" name="" size="13"></div>
<p class="px5">
<div align="center"><input type="Image" src="images/b_search.gif" width="79" height="20" alt="" border="0"></div>
<p class="px5">
<p class="b01"></p>
	</td>
</tr>
</form>
<tr>
	<td><img src="images/left_bot02.gif" width="165" height="18" alt="" border="0"></td>
</tr>
</table>	
	</td>
</tr>
<tr>
	<td><img src="images/left_bot01.gif" width="185" height="32" alt="" border="0"></td>
</tr>
</table>
	</td>
	<td bgcolor="#FFFFFF" width="572">
<div align="center"><img src="images/m_top.gif" width="572" height="8" alt="" border="0"></div>
<p class="px5">
<!--isi di sini-->
<center>
<form name="" method="POST" action="edit_jadwal.php">
	<table>
		<tr>
			<td colspan="3">Menu Edit Jadwal</td>
		</tr>
		<tr>
			<td>Rec No</td>
			<td>:</td>
			<td><input name="rec" type="hidden" value="<? echo "$row[0]"?>"><? echo "$row[0]"?></td>
		</tr>
		
		<tr>
			<td>Kode MK</td>
			<td>:</td>
			<td><input name="kode" type="text" value="<? echo "$row[1]"?>"></td>
		</tr>
		<tr>
			<td>Semester</td>
			<td>:</td>
			<td><input name="semester" type="text" value="<? echo "$row[2]"?>"></td>
		</tr>
		<tr>
			<td>Periode</td>
			<td>:</td>
			<td><input name="periode" type="text" value="<? echo "$row[3]"?>"></td>
		</tr>
		<tr>
			<td>Dosen</td>
			<td>:</td>
			<td><input name="dosen" type="text" value="<? echo "$row[4]"?>" size="30"></td>
		</tr>
		<tr>
			<td>Sesi</td>
			<td>:</td>
			<td><input name="sesi" type="text" value="<? echo "$row[5]"?>"></td>
		</tr>
		<tr>
			<td>Keterangan</td>
			<td>:</td>
			<td><input name="keterangan" type="text" value="<? echo "$row[6]"?>"></td>
		</tr>
		<tr>
			<td>Hari</td>
			<td>:</td>
			<td><input name="hari" type="text" value="<? echo "$row[7]"?>"></td>
		</tr>
		<tr>
			<td>Mulai Pukul</td>
			<td>:</td>
			<td><input name="mulai" type="text" value="<? echo "$row[8]"?>"></td>
		</tr>
		<tr>
			<td>Selesai Pukul</td>
			<td>:</td>
			<td><input name="selesai" type="text" value="<? echo "$row[9]"?>"></td>
		</tr>
		<tr>
			<td>Jurusan</td>
			<td>:</td>
			<td><input name="jurusan" type="hidden" value="<? echo $jur;?>"><? echo $jur;?></td>
		</tr>		
		<tr>
			<td colspan="2"><input name="simpan" type="submit" id="simpan" value="Save"></td>
			<td><input name="reset" type="reset" id="reset" value="Reset"></td>
		</tr>
		
	</table>
	<a href="jadwal.php">Back To Menu Jadwal</a>
	<br>
	
</form>
</center>
<!-- sampai di sini -->
</td>
	<td bgcolor="#979797"><img src="images/px1.gif" width="1" height="1" alt="" border="0"></td>
</tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="758" align="center">
<tr>
	<td height="52" align="right" background="images/bot.gif">
<table border="0" cellpadding="0" cellspacing="0" width="530" background="">
<tr>
	<td>
<p class="menu02">&nbsp; </p>
	</td>
</tr>
</table>
	</td>
</tr>
<tr>
	<td><p align="right" style="margin-right: 200px;">Copyright &copy;2010 Uwika IT Team </p></td>
</tr>
</table>

</body>
</html>
<? 
	}
	else
	echo "Silahkan <a href='index.php'>Login</a> dulu.";
?>